<?php
<object class="Replace_Engine" name="Replace_Engine" baseclass="page">
  <property name="Background"></property>
  <property name="Caption">Replace_Engine</property>
  <property name="Color">#000000</property>
  <property name="DocType">dtNone</property>
  <property name="Height">194</property>
  <property name="IsMaster">0</property>
  <property name="Name">Replace_Engine</property>
  <property name="Width">657</property>
  <property name="OnCreate">Replace_EngineCreate</property>
  <object class="Image" name="Image1" >
    <property name="Autosize">1</property>
    <property name="Border">0</property>
    <property name="Height">28</property>
    <property name="ImageSource">image/rep_engine.png</property>
    <property name="Link"></property>
    <property name="LinkTarget"></property>
    <property name="Name">Image1</property>
    <property name="Width">657</property>
  </object>
  <object class="Label" name="Label93" >
    <property name="Caption">Engine No.</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">27</property>
    <property name="Name">Label93</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">42</property>
    <property name="Width">59</property>
  </object>
  <object class="Edit" name="repEngNum" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">91</property>
    <property name="Name">repEngNum</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">1</property>
    <property name="Top">38</property>
    <property name="Width">333</property>
    <property name="jsOnKeyUp">repEngNumJSKeyUp</property>
  </object>
  <object class="Label" name="Label85" >
    <property name="Caption">Code:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">52</property>
    <property name="Name">Label85</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">70</property>
    <property name="Width">37</property>
  </object>
  <object class="Edit" name="repEngCode" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">91</property>
    <property name="Name">repEngCode</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">2</property>
    <property name="Top">66</property>
    <property name="Width">121</property>
    <property name="jsOnKeyUp">repEngCodeJSKeyUp</property>
  </object>
  <object class="Label" name="Label86" >
    <property name="Caption">Power(bhp):</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">18</property>
    <property name="Name">Label86</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">98</property>
    <property name="Width">72</property>
  </object>
  <object class="Edit" name="repEngPower" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">91</property>
    <property name="Name">repEngPower</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">5</property>
    <property name="Top">94</property>
    <property name="Width">121</property>
    <property name="jsOnKeyUp">repEngPowerJSKeyUp</property>
  </object>
  <object class="Label" name="Label87" >
    <property name="Caption">Torque(lb-ft):</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">9</property>
    <property name="Name">Label87</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">126</property>
    <property name="Width">84</property>
  </object>
  <object class="Edit" name="repEngTorque" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">91</property>
    <property name="Name">repEngTorque</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">9</property>
    <property name="Top">122</property>
    <property name="Width">121</property>
    <property name="jsOnKeyUp">repEngTorqueJSKeyUp</property>
  </object>
  <object class="Label" name="Label90" >
    <property name="Caption">Aspiration:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">237</property>
    <property name="Name">Label90</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">126</property>
    <property name="Width">60</property>
  </object>
  <object class="Label" name="Label89" >
    <property name="Caption">Aircon Type:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">227</property>
    <property name="Name">Label89</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">98</property>
    <property name="Width">75</property>
  </object>
  <object class="Label" name="Label88" >
    <property name="Caption">Disp(ci):</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">249</property>
    <property name="Name">Label88</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">70</property>
    <property name="Width">48</property>
  </object>
  <object class="Edit" name="repEngDisp" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">303</property>
    <property name="Name">repEngDisp</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">3</property>
    <property name="Top">66</property>
    <property name="Width">121</property>
    <property name="jsOnKeyUp">repEngDispJSKeyUp</property>
  </object>
  <object class="Edit" name="repEngAircon" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">303</property>
    <property name="Name">repEngAircon</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">6</property>
    <property name="Top">94</property>
    <property name="Width">121</property>
    <property name="jsOnKeyUp">repEngAirconJSKeyUp</property>
  </object>
  <object class="Edit" name="repEngAspiration" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">303</property>
    <property name="Name">repEngAspiration</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">10</property>
    <property name="Top">122</property>
    <property name="Width">121</property>
    <property name="jsOnKeyUp">repEngAspirationJSKeyUp</property>
  </object>
  <object class="Label" name="Label92" >
    <property name="Alignment"></property>
    <property name="Caption">Fuel Type:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">440</property>
    <property name="Name">Label92</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">98</property>
    <property name="Width">63</property>
  </object>
  <object class="ComboBox" name="repEngFuel" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">504</property>
    <property name="Name">repEngFuel</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">7</property>
    <property name="Top">94</property>
    <property name="Width">120</property>
    <property name="jsOnChange">repEngFuelJSChange</property>
  </object>
  <object class="Button" name="btnrepFuel" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">+</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">19</property>
    <property name="Hint">add fuel type/grade</property>
    <property name="Left">624</property>
    <property name="Name">btnrepFuel</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="ParentShowHint">0</property>
    <property name="ShowHint">1</property>
    <property name="TabOrder">8</property>
    <property name="Top">94</property>
    <property name="Width">20</property>
    <property name="jsOnClick">btnrepFuelJSClick</property>
  </object>
  <object class="Edit" name="repEngCylinder" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">504</property>
    <property name="Name">repEngCylinder</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">4</property>
    <property name="Top">66</property>
    <property name="Width">121</property>
    <property name="jsOnKeyUp">repEngCylinderJSKeyUp</property>
  </object>
  <object class="Label" name="Label91" >
    <property name="Caption">Cylinders:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">440</property>
    <property name="Name">Label91</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">70</property>
    <property name="Width">60</property>
  </object>
  <object class="Button" name="btnECancel" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">Cancel</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">23</property>
    <property name="Left">103</property>
    <property name="Name">btnECancel</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">12</property>
    <property name="Top">153</property>
    <property name="Width">70</property>
    <property name="jsOnClick">btnECancelJSClick</property>
  </object>
  <object class="Button" name="btnEReplace" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">Replace</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">23</property>
    <property name="Left">23</property>
    <property name="Name">btnEReplace</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">11</property>
    <property name="Top">153</property>
    <property name="Width">70</property>
    <property name="OnClick">btnEReplaceClick</property>
  </object>
  <object class="HiddenField" name="hiddenId" >
    <property name="Height">18</property>
    <property name="Left">392</property>
    <property name="Name">hiddenId</property>
    <property name="Top">158</property>
    <property name="Width">100</property>
  </object>
  <object class="HiddenField" name="compid" >
    <property name="Height">18</property>
    <property name="Left">392</property>
    <property name="Name">compid</property>
    <property name="Top">175</property>
    <property name="Width">87</property>
  </object>
  <object class="JTDivWindow" name="JTDivFuel" >
    <property name="AnchorsWorkaround">--Workaround--</property>
    <property name="BorderIcons">
        <property name="Help">0</property>
        <property name="Maximize">0</property>
        <property name="Minimize">0</property>
    </property>
    <property name="Caption">Fuel Type</property>
    <property name="Height">185</property>
    <property name="Left">274</property>
    <property name="Name">JTDivFuel</property>
    <property name="Position">poParentCenter</property>
    <property name="SiteTheme"></property>
    <property name="Top">5</property>
    <property name="Width">271</property>
    <object class="JTGroupBox" name="JTGroupBox1" >
      <property name="AnchorsWorkaround">--Workaround--</property>
      <property name="Height">156</property>
      <property name="Left">9</property>
      <property name="Name">JTGroupBox1</property>
      <property name="SiteTheme"></property>
      <property name="Top">27</property>
      <property name="Width">254</property>
      <object class="ListBox" name="listFuel" >
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">115</property>
        <property name="Items">a:0:{}</property>
        <property name="Left">10</property>
        <property name="Name">listFuel</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">35</property>
        <property name="Width">185</property>
      </object>
      <object class="Edit" name="edFuel" >
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">21</property>
        <property name="Left">10</property>
        <property name="Name">edFuel</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">11</property>
        <property name="Width">185</property>
      </object>
      <object class="Button" name="btnAddFuel" >
        <property name="ButtonType">btNormal</property>
        <property name="Caption">Add</property>
        <property name="Color">#000000</property>
        <property name="Cursor">crPointer</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">25</property>
        <property name="Left">197</property>
        <property name="Name">btnAddFuel</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">11</property>
        <property name="Width">49</property>
        <property name="jsOnClick">btnAddFuelJSClick</property>
      </object>
      <object class="Button" name="btnDelFuel" >
        <property name="ButtonType">btNormal</property>
        <property name="Caption">Delete</property>
        <property name="Color">#000000</property>
        <property name="Cursor">crPointer</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">25</property>
        <property name="Left">197</property>
        <property name="Name">btnDelFuel</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">122</property>
        <property name="Width">49</property>
        <property name="jsOnClick">btnDelFuelJSClick</property>
      </object>
    </object>
  </object>
  <object class="JTJavaScript" name="JTJavaScript1" >
    <property name="Code"><![CDATA[function AjaxFuel2(fu,compid)
{ 
try
  {
  // Firefox, Opera 8.0+, Safari
  httpxml=new XMLHttpRequest();
  }
  catch (e)
  {
  // Internet Explorer
  try
  {
  httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
  }
  catch (e)
  {
  try
  {
  httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
  catch (e)
  {
  alert(&quot;Your browser does not support AJAX!&quot;);
  return false;
  }
  }
  }
  function stateck()
  {
  if(httpxml.readyState==4)
  {
  //eval(httpxml.responseText);
  AjaxFuel('engfuelajax.php','repEngFuel',compid);
  AjaxFuel('engfuelajax.php','listFuel',compid);
  
  AjaxFuelOpener('engfuelajax.php','cmbfuel',compid);
  AjaxFuelOpener('engfuelajax.php','listType',compid);

  }
  }
  var url='addengfuelajax.php';
  url=url+&quot;?val=&quot;+fu;
  url=url+&quot;&amp;compid=&quot;+compid;
  httpxml.onreadystatechange=stateck;
  httpxml.open(&quot;GET&quot;,url,true);
  httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">515</property>
    <property name="Name">JTJavaScript1</property>
    <property name="Top">139</property>
    <property name="Width">142</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript2" >
    <property name="Code"><![CDATA[function AjaxFuel(urlget,elemidtochange,compid)
{
var httpxml;
try
{
// Firefox, Opera 8.0+, Safari
httpxml=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
}
catch (e)
{
try
{
httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
}
catch (e)
{
alert(&quot;Your browser does not support AJAX!&quot;);
return false;
}
}
}
function stateck()
{
if(httpxml.readyState==4)
{
var myarray=eval(httpxml.responseText);
// Before adding new we must remove previously loaded elements
for(j=document.getElementById(elemidtochange).options.length-1;j&gt;=0;j--)
{
document.getElementById(elemidtochange).remove(j);
}
for (i=0;i&lt;myarray.length;i++)
{
var objDropdown = document.getElementById(elemidtochange);
var objOption = new Option(myarray[i][0],myarray[i][1]);
objDropdown.options[objDropdown.length] = objOption;
}
}
}
var url=urlget;
url=url+&quot;?compider=&quot;+compid;
httpxml.onreadystatechange=stateck;
httpxml.open(&quot;GET&quot;,url,true);
httpxml.send(null);
}]]></property>
    <property name="Height">23</property>
    <property name="Left">510</property>
    <property name="Name">JTJavaScript2</property>
    <property name="Top">154</property>
    <property name="Width">147</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript3" >
    <property name="Code"><![CDATA[function AjaxFuel3(fu,compid)
{
var httpxml;
try
  {
  // Firefox, Opera 8.0+, Safari
  httpxml=new XMLHttpRequest();
  }
  catch (e)
  {
  // Internet Explorer
  try
  {
  httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
  }
  catch (e)
  {
  try
  {
  httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
  catch (e)
  {
  alert(&quot;Your browser does not support AJAX!&quot;);
  return false;
  }
  }
  }
  function stateck()
  {
  if(httpxml.readyState==4)
  {
  //eval(httpxml.responseText);
  AjaxFuel('engfuelajax.php','repEngFuel',compid);
  AjaxFuel('engfuelajax.php','listFuel',compid);
  
  AjaxFuelOpener('engfuelajax.php','cmbfuel',compid);
  AjaxFuelOpener('engfuelajax.php','listType',compid);
  }
  }
  var url='delengfuelajax.php';
  url=url+&quot;?val=&quot;+fu;
  url=url+&quot;&amp;compid=&quot;+compid;
  httpxml.onreadystatechange=stateck;
  httpxml.open(&quot;GET&quot;,url,true);
  httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">498</property>
    <property name="Name">JTJavaScript3</property>
    <property name="Top">174</property>
    <property name="Width">159</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript4" >
    <property name="Code"><![CDATA[function AjaxFuelOpener(urlget,elemidtochange,compid)
{
var httpxml;
try
{
	// Firefox, Opera 8.0+, Safari
	httpxml=new XMLHttpRequest();
	}
	catch (e)
	{
	// Internet Explorer
	try
	{
	httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
	}
	catch (e)
	{
	try
	{
	httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
	}
	catch (e)
	{
	alert(&quot;Your browser does not support AJAX!&quot;);
	return false;
	}
	}
	}
	function stateck() 
	{
	if(httpxml.readyState==4)
	{
	var myarray=eval(httpxml.responseText);
	// Before adding new we must remove previously loaded elements
	for(j=window.opener.document.getElementById(elemidtochange).options.length-1;j&gt;=0;j--)
	{
	window.opener.document.getElementById(elemidtochange).remove(j);
	}
	for (i=0;i&lt;myarray.length;i++)
	{
	var objDropdown = window.opener.document.getElementById(elemidtochange);
	var objOption = new Option(myarray[i][0],myarray[i][1]);
	objDropdown.options[objDropdown.length] = objOption;
	}
	}
	}
	var url=urlget;
	url=url+&quot;?compider=&quot;+compid;
	httpxml.onreadystatechange=stateck;
	httpxml.open(&quot;GET&quot;,url,true);
	httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">516</property>
    <property name="Name">JTJavaScript4</property>
    <property name="Top">119</property>
    <property name="Width">141</property>
  </object>
  <object class="JTSiteTheme" name="JTSiteTheme1" >
        <property name="Left">619</property>
        <property name="Top">1</property>
    <property name="Name">JTSiteTheme1</property>
    <property name="Theme">black</property>
  </object>
</object>
?>
